package cn.sieis.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.sieis.pojo.Contest;

public interface ContestMapper {
	
	public List<Contest> getContestList(@Param("conName") String conName,@Param("conApp")Integer conApp,@Param("conLevel")Integer conLevel,
										@Param("from")Integer currentPageNo, @Param("pageSize")Integer pageSize)throws Exception;
	
	public int getContestCount(@Param("conName") String conName,@Param("conApp")Integer conApp,@Param("conLevel")Integer conLevel)throws Exception;
	
	public int addContest(Contest contest)throws Exception;
	
	public int modify(Contest contest)throws Exception;
	
	public Contest getContestById(@Param("id")Integer id)throws Exception;
	
	public int deleteContestById(@Param("id")Integer id)throws Exception;
	
	public List<Contest> getConList(@Param("conName") String conName,@Param("conApp")Integer conApp,@Param("conLevel")Integer conLevel)throws Exception;
	
	public List<Contest> getConConList()throws Exception;
	
	//ǰ�˲鿴����
	  public List<Contest> getContestListFr(@Param("conName")String conName,@Param("conLevel")Integer conLevel);
	

}
